<!--{assign var="menu_id" value="profile"}-->
<!--{include file="<!--{$oetplpath}-->block_header.tpl"}--> 
<!--{include file="<!--{$oetplpath}-->block_top.tpl"}-->
<!--{include file="<!--{$oetplpath}-->block_banner.tpl"}-->
<script src="<!--{$userskin}-->js/profile.js"></script>
<div class="oe_inmain"> 
  <!--{include file="<!--{$oetplpath}-->block_left.tpl"}-->
  <div class="right">
    <div class="oe_ufriend">
      <div class="oe_unav">编辑资料</div>
	  <!--{include file="<!--{$oetplpath}-->profile_top.tpl"}-->
      <div class="oe_utitle">
        <ul>
          <li><a href="<!--{$oefile}-->&c=<!--{$c}-->">基本资料</a></li>
		  <li><a href="<!--{$oefile}-->&c=<!--{$c}-->&a=life">个人&家庭</a></li>
		  <li><a href="<!--{$oefile}-->&c=<!--{$c}-->&a=guihua">爱情规划</a></li>
		  <li><a href="<!--{$oefile}-->&c=<!--{$c}-->&a=intro">内心独白</a></li>
		  <li><a href="<!--{$oefile}-->&c=<!--{$c}-->&a=cond" class="current">择偶条件</a></li>
		  <li><a href="<!--{$oefile}-->&c=rz">联系方式</a></li>
        </ul>
        <div class="clear"></div>
      </div>

      <div class="profile_list">
        <div class="hd">
          <p class="text">设置您的择偶条件，匹配更多适合您的会员！</p>
        </div>
	    
		<form id="myform" action="<!--{$oefile}-->&c=<!--{$c}-->" method="post">
		<input type="hidden" name="a" id="a" value="savecond" />
        <div class="bd">
		  <dl>
		    <dt>年龄：</dt>

			<dd>
			  <!--{hook mod="age" type="select" name="age1" text="不限" value=$login.cond.age1}--> - 
			  <!--{hook mod="age" type="select" name="age2" text="不限" value=$login.cond.age2}--> 岁
			</dd>

		  </dl>
		  <dl>
		    <dt>身高：</dt>
           	<dd>
			  <!--{hook mod="height" type="select" name="height1" text="不限" value=$login.cond.height1}--> - 
			  <!--{hook mod="height" type="select" name="height2" text="不限" value=$login.cond.height2}--> CM
            </dd>
          </dl>
		  <dl>
		    <dt>体重：</dt>
           	<dd>
			  <!--{hook mod="weight" type="select" name="weight1" text="不限" value=$login.cond.weight1}--> - 
			  <!--{hook mod="weight" type="select" name="weight2" text="不限" value=$login.cond.weight2}--> KG
            </dd>
          </dl>
		  <dl>
			<dt>婚况：</dt>
			<dd class="hobby" id="marry_list">
				<input type="hidden" name="marry" id="marry" value="<!--{$login.cond.marry}-->" />
				<!--{assign var="marry_list" value=vo_list("mod={volistvar} where={marry}")}-->
				<!--{foreach $marry_list as $val}-->
				<!--{assign var="is_select" value=<!--{tofound value="<!--{$login.cond.marry}-->" tofound="<!--{$val.value}-->"}-->}-->
				<em<!--{if $is_select == '1'}--> class="current"<!--{/if}--> f="but_sel_var" data-id="<!--{$val.value}-->"><!--{$val.text}--></em>
				<!--{/foreach}-->
			</dd>
		  </dl>
		  <dl>
		    <dt>住房：</dt>
           	<dd>
			  <!--{hook mod="var" item="house" type="select" name="house" text="不限" value=$login.cond.house}-->
            </dd>
          </dl>
		  <dl>
		    <dt>购车：</dt>
           	<dd>
			  <!--{hook mod="var" item="car" type="select" name="car" text="不限" value=$login.cond.car}-->
            </dd>
          </dl>
		  <dl>
		    <dt>小孩：</dt>
           	<dd>
			  <!--{hook mod="var" item="child" type="select" name="child" text="不限" value=$login.cond.child}-->
            </dd>
          </dl>
		  <dl>
		    <dt>头像：</dt>
           	<dd>
			  <select name="avatar" id="avatar">
			    <option value="">不限</option>
				<option value="1"<!--{if $login.cond.avatar == '1'}--> selected<!--{/if}-->>有头像</option>
			  </select>
            </dd>
          </dl>
		  <dl>
		    <dt>诚信：</dt>
           	<dd>
			  <select name="rz" id="rz">
			    <option value="">不限</option>
				<option value="1"<!--{if $login.cond.rz == '1'}--> selected<!--{/if}-->>认证会员</option>
			  </select>
            </dd>
          </dl>
		  <dl>
		    <dt>学历：</dt>
           	<dd>
			  <!--{hook mod="var" item="education" type="select" name="education" text="不限" value=$login.cond.education}-->
			  <input type="checkbox" name="eduup" id="eduup" value="1"<!--{if $login.cond.eduup == '1'}--> checked<!--{/if}--> />或以上
            </dd>
          </dl>
		  <dl>
		    <dt>收入：</dt>
           	<dd>
			  <!--{hook mod="var" item="salary" type="select" name="salary" text="不限" value=$login.cond.salary}-->
			  <input type="checkbox" name="salaryup" id="salaryup" value="1"<!--{if $login.cond.salaryup == '1'}--> checked<!--{/if}--> />或以上
            </dd>
          </dl>
		  <dl>
		    <dt>地区：</dt>
			<dd>
				<!--{area type='select' name='area' depth='1' child='1' text='=请选择=' value=$login.cond.area1}-->
				<span id="json_area2">
				  <!--{if $login.cond.area1 > 0}-->
				  <!--{area type='select' name='area' depth='2' child='1' text='=请选择=' parentid=$login.cond.area1 value=$login.cond.area2}-->
				  <!--{else}-->
				  <select name="area2" id="area2"><option value="">=请选择=</option></select>
				  <!--{/if}-->
				</span>
            </dd>
          </dl>
		  <dl class="btn">

			<dt></dt>

			<dd><label f="but_save">保存</label></dd>

		  </dl>
        </div>
		<!--//bd End-->
		</form>

      </div>
	  <!--//profile_list End-->
      
    </div>
  </div>
  <div class="clear"></div>
</div>
<script type="text/javascript">
$(function(){
	$("[f='but_save']").bind("click", function(){
		$("#myform").submit();
	});
	
	$("[f='but_sel_var']").bind("click", function(){
		if ($(this).hasClass("current")) {
			$(this).removeClass("current");
		}
		else {
			$(this).addClass("current");
		}
		_sel_list_val();
	});
});
function _sel_list_val() {
	$val = "";
	$("#marry_list em").each(function(){
		if ($(this).hasClass("current")) {
			$val = $val+$(this).attr("data-id")+",";
		}
	});
	$("#marry").val($val);
}
</script>

<!--{include file="<!--{$oetplpath}-->block_footer.tpl"}-->
</body>
</html>